home *** CD-ROM | disk | FTP | other *** search
Wrap
head 1.3; branch ; access ; symbols ; locks death:1.3; strict; comment @ * @; 1.3 date 92.03.29.12.08.40; author death; state Exp; branches ; next 1.2; 1.2 date 92.02.09.18.39.39; author death; state Exp; branches ; next 1.1; 1.1 date 92.02.09.14.01.37; author death; state Exp; branches ; next ; desc @The implementation file for the ErrorInfo object. See ErrorInfo.rtf for juicy details. @ 1.3 log @turns out that 2.0 wants init calls to be in the object, not the class. Changed accordingly (also moved free into class). @ text @/* ==================================================================== This is the interface file for the ErrorInfo class. Full documentation for this class can be found in the ErrorInfo.rtf file. I will not duplicate all that fine information here. This is $Revision: 1.2 $ of this file It was last modified by $Author: death $ on $Date: 92/02/09 18:39:39 $ Note that this file was created while using the New Century Schoolbook Roman typeface. You may find that some things line up strangely if you don't use that family. $Log: ErrorInfo.h,v $ * Revision 1.2 92/02/09 18:39:39 death * minor modifications, including changing someTypes.h to the new name generalTypes.h * * Revision 1.1 92/02/09 14:01:37 death * Initial revision * ==================================================================== */ //=== // Import our parent class' definition //=== #import <objc/Object.h> #import "generalTypes.h" //=== // Now, define our interface. Again, see the ErrorInfo.rtf document for general info. //=== @@interface ErrorInfo:Object { long int errorKind; Cstring errorText; long int errorCode; } - (id) initErrorWithCode: (long int) code Text: (Cstring) text Kind: (long int) kind; - (id) initErrorWithCode: (long int) code Text: (Cstring) text; - free; - (long int) getErrorKind; - (Cstring) getErrorText; - (long int) getErrorCode; @@end //=== // Now, define some constants used by the class to define the kinds of errors that may occurr //=== #define ERRKIND_NONE 0 // Do not use this kind. Return NULL instead. #define ERRKIND_GENERAL 1 #define ERRKIND_USER 2 #define ERRKIND_OS 3 @ 1.2 log @minor modifications, including changing someTypes.h to the new name generalTypes.h @ text @d4 2 a5 2 This is $Revision: 1.1 $ of this file It was last modified by $Author: death $ on $Date: 92/02/09 14:01:37 $ d8 3 d34 3 a36 3 + (id) initErrorWithCode: (long int) code Text: (Cstring) text Kind: (long int) kind; + (id) initErrorWithCode: (long int) code Text: (Cstring) text; + free; @ 1.1 log @Initial revision @ text @d4 2 a5 2 This is $Revision$ of this file It was last modified by $Author$ on $Date$ d7 4 a10 1 $Log$ d18 1 a18 1 #import "someTypes.h" @